<?php

namespace app\models;

use yii\db\ActiveRecord;

/**
 * 退款
 */
class Refund extends ActiveRecord
{
    /**
     * 关联套餐
     * @return \yii\db\ActiveQuery
     */
    public function getPackage()
    {
        return $this->hasOne(Package::class, ['id' => 'package_id']);
    }

    /**
     * 关联卡
     */
    public function getCard(){
    	return $this->hasOne(Card::class,['id' => 'card_id']);
    }
}
